<?
require_once("admin/dbconnect.php");
require_once("admin/classes/check_customer_session.php");

//customer online code here
$username = $_SESSION['ep_customername'];
$offline ="update customer set online_status = 'offline' where email='$username'";
$rsb = mysql_query($offline);
//online customer code ends here

check_customer_session();

session_unset();
session_destroy();
/*
						setcookie("ep_customer_id", $customer_id, time()-3600, "/","", 0);
						setcookie("MM_Username", "$username", time()-3600, "/","", 0);
						setcookie("ep_customer_name", $a_row['name'] , time()+3600, "/","", 0);
						setcookie("gbl_email", $a_row['email'], time()-3600, "/","", 0);
						setcookie("paid_cust_st", $a_row['paid'], time()-3600, "/","", 0);
						*/
?>
<html>
<head>
<title>Logout eParinay.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV=Refresh CONTENT="1; URL=login.php">
<link href="stylesheet/eparinay.css" type="text/css" rel="stylesheet" />
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	<h1><br />Please wait for moment!</h1><h3>Redirecting...</h3>
</body>
</html>